namespace Entities {
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class RedxModel : DbContext {
        public RedxModel()
            : base( "RedxModel" ) {
            var ensureDLLIsCopied = System.Data.Entity.SqlServer.SqlProviderServices.Instance;
        }

        public virtual DbSet<Medium> Media { get; set; }
        public virtual DbSet<PerfMonitor> PerfMonitors { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder) {
            modelBuilder.Entity<Medium>()
                .Property( e => e.Name )
                .IsUnicode( false );

            modelBuilder.Entity<Medium>()
                .Property( e => e.Path )
                .IsUnicode( false );
        }
    }
}
